package com.example.victory.swagger.model;

import java.util.Objects;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.ArrayList;
import java.util.List;
import org.springframework.validation.annotation.Validated;
import javax.validation.Valid;

/**
 * 客户信息
 */
@ApiModel(description = "客户信息")
@Validated
@javax.annotation.Generated(value = "io.swagger.codegen.languages.SpringCodegen", date = "2021-04-26T10:50:39.083+08:00")

public class BusChanceCustInfo   {
  /**
   * 业务类型：融资融券、个股期权、沪港通、深港通、创业板、OTC、科创版
   */
  public enum BusTypeEnum {
    RZRQ("BUS_RZRQ"),
    
    GGQQ("BUS_GGQQ"),
    
    HGT("BUS_HGT"),
    
    SGT("BUS_SGT"),
    
    CYB("BUS_CYB"),
    
    OTC("BUS_OTC"),
    
    KCB("BUS_KCB");

    private String value;

    BusTypeEnum(String value) {
      this.value = value;
    }

    @Override
    @JsonValue
    public String toString() {
      return String.valueOf(value);
    }

    @JsonCreator
    public static BusTypeEnum fromValue(String text) {
      for (BusTypeEnum b : BusTypeEnum.values()) {
        if (String.valueOf(b.value).equals(text)) {
          return b;
        }
      }
      return null;
    }
  }

  @JsonProperty("busType")
  private BusTypeEnum busType = null;

  @JsonProperty("name")
  private String name = null;

  @JsonProperty("customerId")
  private String customerId = null;

  @JsonProperty("relationType")
  private String relationType = null;

  @JsonProperty("riskLevel")
  private Integer riskLevel = null;

  @JsonProperty("custLevel")
  private Integer custLevel = null;

  @JsonProperty("isService")
  private Boolean isService = null;

  @JsonProperty("phone")
  private String phone = null;

  @JsonProperty("imId")
  private String imId = null;

  @JsonProperty("details")
  @Valid
  private List<KeyValueDetail> details = null;

  public BusChanceCustInfo busType(BusTypeEnum busType) {
    this.busType = busType;
    return this;
  }

  /**
   * 业务类型：融资融券、个股期权、沪港通、深港通、创业板、OTC、科创版
   * @return busType
  **/
  @ApiModelProperty(example = "BUS_RZRQ", value = "业务类型：融资融券、个股期权、沪港通、深港通、创业板、OTC、科创版")


  public BusTypeEnum getBusType() {
    return busType;
  }

  public void setBusType(BusTypeEnum busType) {
    this.busType = busType;
  }

  public BusChanceCustInfo name(String name) {
    this.name = name;
    return this;
  }

  /**
   * 客户姓名
   * @return name
  **/
  @ApiModelProperty(example = "张三", value = "客户姓名")


  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public BusChanceCustInfo customerId(String customerId) {
    this.customerId = customerId;
    return this;
  }

  /**
   * 客户号
   * @return customerId
  **/
  @ApiModelProperty(example = "12345623", value = "客户号")


  public String getCustomerId() {
    return customerId;
  }

  public void setCustomerId(String customerId) {
    this.customerId = customerId;
  }

  public BusChanceCustInfo relationType(String relationType) {
    this.relationType = relationType;
    return this;
  }

  /**
   * 1-服务关系;2-签约关系;10-开发关系(默认开发关系)
   * @return relationType
  **/
  @ApiModelProperty(example = "10", value = "1-服务关系;2-签约关系;10-开发关系(默认开发关系)")


  public String getRelationType() {
    return relationType;
  }

  public void setRelationType(String relationType) {
    this.relationType = relationType;
  }

  public BusChanceCustInfo riskLevel(Integer riskLevel) {
    this.riskLevel = riskLevel;
    return this;
  }

  /**
   * 0-保守型(最低);1-保守型;2-谨慎型;3-稳健型;4-积极型;5-激进型
   * @return riskLevel
  **/
  @ApiModelProperty(example = "1", value = "0-保守型(最低);1-保守型;2-谨慎型;3-稳健型;4-积极型;5-激进型")


  public Integer getRiskLevel() {
    return riskLevel;
  }

  public void setRiskLevel(Integer riskLevel) {
    this.riskLevel = riskLevel;
  }

  public BusChanceCustInfo custLevel(Integer custLevel) {
    this.custLevel = custLevel;
    return this;
  }

  /**
   * 客户级别：1一级，2二级，3三级，4四级，5五级
   * @return custLevel
  **/
  @ApiModelProperty(example = "1", value = "客户级别：1一级，2二级，3三级，4四级，5五级")


  public Integer getCustLevel() {
    return custLevel;
  }

  public void setCustLevel(Integer custLevel) {
    this.custLevel = custLevel;
  }

  public BusChanceCustInfo isService(Boolean isService) {
    this.isService = isService;
    return this;
  }

  /**
   * 是否服务（已服务/未服务）
   * @return isService
  **/
  @ApiModelProperty(example = "false", value = "是否服务（已服务/未服务）")


  public Boolean isIsService() {
    return isService;
  }

  public void setIsService(Boolean isService) {
    this.isService = isService;
  }

  public BusChanceCustInfo phone(String phone) {
    this.phone = phone;
    return this;
  }

  /**
   * 客户手机号码
   * @return phone
  **/
  @ApiModelProperty(example = "13739036666", value = "客户手机号码")


  public String getPhone() {
    return phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  public BusChanceCustInfo imId(String imId) {
    this.imId = imId;
    return this;
  }

  /**
   * 发消息用的imId
   * @return imId
  **/
  @ApiModelProperty(example = "13739036666", value = "发消息用的imId")


  public String getImId() {
    return imId;
  }

  public void setImId(String imId) {
    this.imId = imId;
  }

  public BusChanceCustInfo details(List<KeyValueDetail> details) {
    this.details = details;
    return this;
  }

  public BusChanceCustInfo addDetailsItem(KeyValueDetail detailsItem) {
    if (this.details == null) {
      this.details = new ArrayList<KeyValueDetail>();
    }
    this.details.add(detailsItem);
    return this;
  }

  /**
   * 附加信息
   * @return details
  **/
  @ApiModelProperty(value = "附加信息")

  @Valid

  public List<KeyValueDetail> getDetails() {
    return details;
  }

  public void setDetails(List<KeyValueDetail> details) {
    this.details = details;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    BusChanceCustInfo busChanceCustInfo = (BusChanceCustInfo) o;
    return Objects.equals(this.busType, busChanceCustInfo.busType) &&
        Objects.equals(this.name, busChanceCustInfo.name) &&
        Objects.equals(this.customerId, busChanceCustInfo.customerId) &&
        Objects.equals(this.relationType, busChanceCustInfo.relationType) &&
        Objects.equals(this.riskLevel, busChanceCustInfo.riskLevel) &&
        Objects.equals(this.custLevel, busChanceCustInfo.custLevel) &&
        Objects.equals(this.isService, busChanceCustInfo.isService) &&
        Objects.equals(this.phone, busChanceCustInfo.phone) &&
        Objects.equals(this.imId, busChanceCustInfo.imId) &&
        Objects.equals(this.details, busChanceCustInfo.details);
  }

  @Override
  public int hashCode() {
    return Objects.hash(busType, name, customerId, relationType, riskLevel, custLevel, isService, phone, imId, details);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class BusChanceCustInfo {\n");
    
    sb.append("    busType: ").append(toIndentedString(busType)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    customerId: ").append(toIndentedString(customerId)).append("\n");
    sb.append("    relationType: ").append(toIndentedString(relationType)).append("\n");
    sb.append("    riskLevel: ").append(toIndentedString(riskLevel)).append("\n");
    sb.append("    custLevel: ").append(toIndentedString(custLevel)).append("\n");
    sb.append("    isService: ").append(toIndentedString(isService)).append("\n");
    sb.append("    phone: ").append(toIndentedString(phone)).append("\n");
    sb.append("    imId: ").append(toIndentedString(imId)).append("\n");
    sb.append("    details: ").append(toIndentedString(details)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}

